package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
/**
 * 开启组件扫描和自动配置,相当于以下三个配置
 *
 * @Configuration 表明该类使用Spring基于JAVA的配置
 * @ComponentScan 启用组件扫描
 * @EableAutoConfiguration 开启自动配置
 */
public class DemoApplication {

    public static void main(String[] args) {
        // 启动引导应用程序
        SpringApplication.run(DemoApplication.class, args);
    }
}
